package com.tencent.hummingbird.portal.mapper;

import com.tencent.hummingbird.portal.pojo.Question;
import com.tencent.hummingbird.portal.pojo.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author yxb
* @since 2024-01-10
*/
@Repository
public interface TagMapper extends BaseMapper<Tag> {

    @Select("select id from tag where name = #{name}")
    Integer selectTagByName(String name);
}
